package cn.hengzhu.main_manager.repository.dao;

import cn.hengzhu.main_manager.repository.domain.CaseAdvertise;
import cn.hengzhu.main_manager.repository.domain.CaseAdvertiseExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface CaseAdvertiseMapper {
	/**
	 *
	 * @mbg.generated
	 */
	long countByExample(CaseAdvertiseExample example);

	/**
	 *
	 * @mbg.generated
	 */
	int deleteByExample(CaseAdvertiseExample example);

	/**
	 *
	 * @mbg.generated
	 */
	int deleteByPrimaryKey(Integer id);

	/**
	 *
	 * @mbg.generated
	 */
	int insert(CaseAdvertise record);

	/**
	 *
	 * @mbg.generated
	 */
	int insertSelective(CaseAdvertise record);

	/**
	 *
	 * @mbg.generated
	 */
	List<CaseAdvertise> selectByExample(CaseAdvertiseExample example);

	/**
	 *
	 * @mbg.generated
	 */
	CaseAdvertise selectByPrimaryKey(Integer id);

	/**
	 *
	 * @mbg.generated
	 */
	int updateByExampleSelective(@Param("record") CaseAdvertise record, @Param("example") CaseAdvertiseExample example);

	/**
	 *
	 * @mbg.generated
	 */
	int updateByExample(@Param("record") CaseAdvertise record, @Param("example") CaseAdvertiseExample example);

	/**
	 *
	 * @mbg.generated
	 */
	int updateByPrimaryKeySelective(CaseAdvertise record);

	/**
	 *
	 * @mbg.generated
	 */
	int updateByPrimaryKey(CaseAdvertise record);

	List<CaseAdvertise> getAll();

	/**
	 * @author 周磊
	 * @since 2018年11月7日
	 * @param list
	 * @return
	 */
	int insertMore(@Param("list") List<CaseAdvertise> list);

	List<CaseAdvertise> selectLikeDes(@Param("compId") Integer compId, @Param("like") String like);
}